package com.sky.yipinyoufujava.mapper;


import com.sky.yipinyoufujava.pojo.from.ShopsFrom;
import com.sky.yipinyoufujava.pojo.goods.Shops;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ShopsMapper {
    List<Shops> getAllShop(ShopsFrom shopsFrom);

    void addShop(Shops shops);



    void updateShop(Shops shops);



    void deleteShop(@Param("ids") List<Integer> ids);


    @Select("select * from shops where shopsUserId = #{userId}")
    Shops getShopByUserId(Object userId);
}
